#include "wx/wxprec.h"
#include "wx/power.h"

#ifdef wxHAS_POWER_EVENTS
DEFINE_EVENT_TYPE( wxEVT_POWER_SUSPENDING )
DEFINE_EVENT_TYPE( wxEVT_POWER_SUSPENDED )
DEFINE_EVENT_TYPE( wxEVT_POWER_SUSPEND_CANCEL )
DEFINE_EVENT_TYPE( wxEVT_POWER_RESUME )

IMPLEMENT_ABSTRACT_CLASS( wxPowerEvent, wxEvent )
#endif

// provide stubs for the systems not implementing these functions
#if !defined(__WXPALMOS__) && !defined(__WXMSW__)

wxPowerType wxGetPowerType() {
  return wxPOWER_UNKNOWN;
}

wxBatteryState wxGetBatteryState() {
  return wxBATTERY_UNKNOWN_STATE;
}

#endif // systems without power management functions

